<!DOCTYPE html>
<html>
<head>
    <title>门店详情</title>
    <% include common/meta.ejs %>
    <% include common/public.ejs %>
    <link href="<%= global.config.path.publicPath %>/custom/officialAccount/css/officalCommon.css" rel="stylesheet">
    <link href="<%= global.config.path.publicPath %><%= body.stylePath %>" rel="stylesheet">
    <style>
        .weui-loadmore__tips {
            font-size: 16px;
        }

        .tableBody {
            height: calc(100% - 250px);
        }

        a:link {
            color: #0b1821;
        }

        a:visited {
            color: #0b1821;
        }

        .underline {
            z-index: 0;
        }

        .box-title {
            z-index: 999;
        }

        .tbList img {
            display: inline-block;
            position: relative;
            left: -5%;
            height: auto;
            width: 30px;
        }

        .tbList {
            height: 50px;
            border-bottom: solid 1px #909090;
            line-height: 50px;
            background-color: #fff;
        }
    </style>
</head>
<body ontouchstart>
<div>

    <title>附近门店</title>
    <style>
        .box-title {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 9999;
        }
        .store-list-title, .store-detail-title {
            text-align: center;
            margin-top: 20px;
        }
        body{
            background-color: #FBF9FE;
        }
        .store-list-item .store-address, .store-detail-item .store-address {
            color: #999;
        }
        .store-list-item, .store-detail-item {
            margin: 10px;
            padding: 5px;
            border-top: 1px solid #ccc;
            font-size: 14px;
            color: #666;
        }
        .store-list-item .store-other .distance, .store-detail-item .store-active {
            color: #ae2421;
            font-weight: 700;
        }
        .store-list-item .store-other .more {
            float: right;
            color: #e68f8f;
        }
    </style>


    <div class="store-list-container">
        <div>
            <!--<div th:each="promotion:${promotions}">-->
            <!--<div th:text="${promotion.promoName}"></div>-->
            <!--<div th:text="${promotion.promoDesc}"></div>-->
            <!--</div>-->

            <title>
                门店详情
            </title>
            <style>
                .box-title {
                    position: fixed;
                    top: 0;
                    left: 0;
                    z-index: 9999;
                }
            </style>

            <div class="store-detail-container">
                <div class="store-detail-title">
                    <img src="<%=global.config.path.publicPath%>/images/storeListTitle.png" class="title-icon">
                    <span class="orgName"></span>
                </div>
                <div class="store-detail-item">
                    <p class="store-address">
                        地址：<span class="address"></span>
                    </p>
                </div>

                <%if(result){%>
                <div class="store-detail-item">
                    <p class="store-active">
                        门店活动
                    </p>
                </div>
                <% for(let i=0;i<result.length;i++){%>
                <div class="store-detail-item">
                    <p class="store-title"><%=result[i].promoName%></p>
                    <p class="store-address">
                        备注：<span><%=result[i].promoDesc%></span>
                    </p>
                </div>
                <%}%>
                <%}else {%>
                <div class="store-detail-item">
                    <p class="store-active">
                        暂无门店活动
                    </p>
                </div>
                <%}%>


            </div>
        </div>
    </div>


</div>

<% include common/footer.ejs %>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?d13328b5db725a57a4babbcacdd4c38d";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();


    $(document).ready(function()
    {
        $('.orgName')[0].innerText=sessionStorage.getItem('orgName')
        $('.address')[0].innerText=sessionStorage.getItem('address')
    });
</script>


</body>
</html>
